package warehouse;

import java.util.Calendar;
import java.util.Date;

public class Transaction {

    private int id, quantity, itemPrice, totalPrice;
    private String itemName;
    private Date dateTime;

    public Transaction() {
        this.id = 0;
        this.quantity = 0;
        this.itemPrice = 0;
        this.totalPrice = 0;
        this.itemName = "";
        this.dateTime = Calendar.getInstance().getTime();
    }

    public Transaction(int id, int quantity, int itemPrice, int totalPrice, Date dateTime, String itemName) {
        this.id = id;
        this.quantity = quantity;
        this.itemPrice = itemPrice;
        this.totalPrice = totalPrice;
        this.dateTime = dateTime;
        this.itemName = itemName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(int totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public int getItemPrice() {
        return itemPrice;
    }

    public void setItemPrice(int itemPrice) {
        this.itemPrice = itemPrice;
    }
}
